-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Add x/msg_authorization
module
#7370
Conversation
x/authorization
modulex/authorization
module
Codecov Report
@@ Coverage Diff @@
## master #7370 +/- ##
==========================================
- Coverage 54.21% 54.14% -0.07%
==========================================
Files 611 631 +20
Lines 38464 39291 +827
==========================================
+ Hits 20852 21276 +424
- Misses 15503 15864 +361
- Partials 2109 2151 +42 |
x/authorization
modulex/msg_authorization
module
…into aleem/msg_authorization
…into aleem/msg_authorization
@@ -0,0 +1,130 @@ | |||
package keeper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe having an internal
folder was the old way of writing modules. Let's stick to having keeper
at the root folder of the module
} | ||
granter := signers[0] | ||
if !bytes.Equal(granter, grantee) { | ||
authorization, _ := k.GetAuthorization(ctx, grantee, granter, msg.Type()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll need to update the ADR draft but we should use proto.MessageName(msg)
now instead of msg.Type()
…eem/msg_authorization
…into aleem/msg_authorization # Conflicts: # x/msg_authorization/keeper/keeper.go # x/msg_authorization/keeper/keeper_test.go # x/msg_authorization/types/msgs.go
This pull request introduces 2 alerts when merging cf097d4 into 332d8ec - view on LGTM.com new alerts:
|
… msg_authorization
… msg_authorization
… msg_authorization
@@ -0,0 +1,12 @@ | |||
syntax = "proto3"; | |||
package cosmos.msg_authorization.v1beta1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package cosmos.msg_authorization.v1beta1; | |
package cosmos.authz.v1beta1; |
@@ -0,0 +1,46 @@ | |||
package msg_authorization |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package msg_authorization | |
package authz |
closing this PR in favour of #7629 |
ref: #5412
Description
closes: #XXXX
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes